import { createStore } from 'vuex'

export default createStore({
  state: {
    name: '沙漠骆驼'
  },
  mutations: {
    setname (state) {
      state.name = '邵默骆驼'
    }
  },
  getters: {

  },
  actions: {
    updatename ({ commit }) {
      setTimeout(() => {
        commit('setname')
      }, 1000)
    }
  },
  modules: {
  }
})
